﻿<link href="~/AdminContent/css/font-awesome.css" rel="stylesheet" />
<link href="~/AdminContent/css/login.css" rel="stylesheet" />
<link href="~/AdminContent/css/x-admin.css" rel="stylesheet" />
<script src="~/AdminContent/js/jquery.min.js"></script>
<script src="~/AdminContent/lib/layui/layui.js"></script>
<script src="~/AdminContent/Scripts/jquery-1.8.0.js"></script>
<div class="login layui-anim layui-anim-up">
    <div class="message">用户登录</div>
    <div id="darkbannerwrap"></div>
    <form id="frmlogin">
        <input name="Name" placeholder="用户名" type="text" lay-verify="required" class="layui-input">
        <hr class="hr15">
        <input name="Password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
        <hr class="hr15">
        <input value="登录" lay-submit lay-filter="login" style="width:100%;" type="button" onclick="login()">
        <hr class="hr20">
    </form>
</div>
<script>
    function login() {
        var re = $("#frmlogin").serialize();
        $.post("/Admin/Login/Login",re, function (r) {
            if (r.success) {
                location.href = "/Admin/Home/Index";
            }
            else {
                alert(r.Message);
            }
        }, "json")

    }
</script>
